Integrand size = 25, antiderivative size = 75 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {4130, 3856, 2720} \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \]
[In]
[Out]
Rule 2720
Rule 3856
Rule 4130
Rubi steps \begin{align*} \text {integral}& = \frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac {(A+3 C) \int \sqrt {b \sec (c+d x)} \, dx}{3 b^2} \\ & = \frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}}+\frac {\left ((A+3 C) \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^2} \\ & = \frac {2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {b \sec (c+d x)}}{3 b^2 d}+\frac {2 A \tan (c+d x)}{3 d (b \sec (c+d x))^{3/2}} \\ \end{align*}
Time = 0.44 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.88 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {\sec ^2(c+d x) \left (2 (A+3 C) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+A \sin (2 (c+d x))\right )}{3 d (b \sec (c+d x))^{3/2}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 2.91 (sec) , antiderivative size = 218, normalized size of antiderivative = 2.91
method | result | size |
parts | \(-\frac {2 A \left (i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )+i \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )-\sin \left (d x +c \right )\right )}{3 d \sqrt {b \sec \left (d x +c \right )}\, b}-\frac {2 i C \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (-\cot \left (d x +c \right )+\csc \left (d x +c \right )\right ), i\right )}{d b \sqrt {b \sec \left (d x +c \right )}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\) | \(218\) |
default | \(\frac {\frac {2 i A \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right )}{3}+2 i C \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right )+\frac {2 i A \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )}{3}+2 i C \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {EllipticF}\left (i \left (\cot \left (d x +c \right )-\csc \left (d x +c \right )\right ), i\right ) \sec \left (d x +c \right )+\frac {2 A \sin \left (d x +c \right )}{3}}{d \sqrt {b \sec \left (d x +c \right )}\, b}\) | \(264\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 100, normalized size of antiderivative = 1.33 \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\frac {2 \, A \sqrt {\frac {b}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + \sqrt {2} {\left (-i \, A - 3 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (i \, A + 3 i \, C\right )} \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )}{3 \, b^{2} d} \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + A}{\left (b \sec \left (d x + c\right )\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{3/2}} \, dx=\int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]